﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020007A7 RID: 1959
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class GetPrivateChatHistoryScRsp : IMessage<GetPrivateChatHistoryScRsp>, IMessage, IEquatable<GetPrivateChatHistoryScRsp>, IDeepCloneable<GetPrivateChatHistoryScRsp>, IBufferMessage
	{
		// Token: 0x170018FD RID: 6397
		// (get) Token: 0x060057FE RID: 22526 RVA: 0x000ED65B File Offset: 0x000EB85B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<GetPrivateChatHistoryScRsp> Parser
		{
			get
			{
				return GetPrivateChatHistoryScRsp._parser;
			}
		}

		// Token: 0x170018FE RID: 6398
		// (get) Token: 0x060057FF RID: 22527 RVA: 0x000ED662 File Offset: 0x000EB862
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return GetPrivateChatHistoryScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170018FF RID: 6399
		// (get) Token: 0x06005800 RID: 22528 RVA: 0x000ED674 File Offset: 0x000EB874
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return GetPrivateChatHistoryScRsp.Descriptor;
			}
		}

		// Token: 0x06005801 RID: 22529 RVA: 0x000ED67B File Offset: 0x000EB87B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetPrivateChatHistoryScRsp()
		{
		}

		// Token: 0x06005802 RID: 22530 RVA: 0x000ED690 File Offset: 0x000EB890
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetPrivateChatHistoryScRsp(GetPrivateChatHistoryScRsp other) : this()
		{
			this.chatMessageList_ = other.chatMessageList_.Clone();
			this.retcode_ = other.retcode_;
			this.targetId_ = other.targetId_;
			this.contactId_ = other.contactId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06005803 RID: 22531 RVA: 0x000ED6E9 File Offset: 0x000EB8E9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetPrivateChatHistoryScRsp Clone()
		{
			return new GetPrivateChatHistoryScRsp(this);
		}

		// Token: 0x17001900 RID: 6400
		// (get) Token: 0x06005804 RID: 22532 RVA: 0x000ED6F1 File Offset: 0x000EB8F1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<ChatMessageData> ChatMessageList
		{
			get
			{
				return this.chatMessageList_;
			}
		}

		// Token: 0x17001901 RID: 6401
		// (get) Token: 0x06005805 RID: 22533 RVA: 0x000ED6F9 File Offset: 0x000EB8F9
		// (set) Token: 0x06005806 RID: 22534 RVA: 0x000ED701 File Offset: 0x000EB901
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x17001902 RID: 6402
		// (get) Token: 0x06005807 RID: 22535 RVA: 0x000ED70A File Offset: 0x000EB90A
		// (set) Token: 0x06005808 RID: 22536 RVA: 0x000ED712 File Offset: 0x000EB912
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint TargetId
		{
			get
			{
				return this.targetId_;
			}
			set
			{
				this.targetId_ = value;
			}
		}

		// Token: 0x17001903 RID: 6403
		// (get) Token: 0x06005809 RID: 22537 RVA: 0x000ED71B File Offset: 0x000EB91B
		// (set) Token: 0x0600580A RID: 22538 RVA: 0x000ED723 File Offset: 0x000EB923
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint ContactId
		{
			get
			{
				return this.contactId_;
			}
			set
			{
				this.contactId_ = value;
			}
		}

		// Token: 0x0600580B RID: 22539 RVA: 0x000ED72C File Offset: 0x000EB92C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as GetPrivateChatHistoryScRsp);
		}

		// Token: 0x0600580C RID: 22540 RVA: 0x000ED73C File Offset: 0x000EB93C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(GetPrivateChatHistoryScRsp other)
		{
			return other != null && (other == this || (this.chatMessageList_.Equals(other.chatMessageList_) && this.Retcode == other.Retcode && this.TargetId == other.TargetId && this.ContactId == other.ContactId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600580D RID: 22541 RVA: 0x000ED7AC File Offset: 0x000EB9AC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			num ^= this.chatMessageList_.GetHashCode();
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this.TargetId != 0U)
			{
				num ^= this.TargetId.GetHashCode();
			}
			if (this.ContactId != 0U)
			{
				num ^= this.ContactId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600580E RID: 22542 RVA: 0x000ED82B File Offset: 0x000EBA2B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600580F RID: 22543 RVA: 0x000ED833 File Offset: 0x000EBA33
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06005810 RID: 22544 RVA: 0x000ED83C File Offset: 0x000EBA3C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.ContactId != 0U)
			{
				output.WriteRawTag(16);
				output.WriteUInt32(this.ContactId);
			}
			this.chatMessageList_.WriteTo(ref output, GetPrivateChatHistoryScRsp._repeated_chatMessageList_codec);
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(48);
				output.WriteUInt32(this.Retcode);
			}
			if (this.TargetId != 0U)
			{
				output.WriteRawTag(56);
				output.WriteUInt32(this.TargetId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06005811 RID: 22545 RVA: 0x000ED8C4 File Offset: 0x000EBAC4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			num += this.chatMessageList_.CalculateSize(GetPrivateChatHistoryScRsp._repeated_chatMessageList_codec);
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this.TargetId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.TargetId);
			}
			if (this.ContactId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.ContactId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06005812 RID: 22546 RVA: 0x000ED948 File Offset: 0x000EBB48
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(GetPrivateChatHistoryScRsp other)
		{
			if (other == null)
			{
				return;
			}
			this.chatMessageList_.Add(other.chatMessageList_);
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			if (other.TargetId != 0U)
			{
				this.TargetId = other.TargetId;
			}
			if (other.ContactId != 0U)
			{
				this.ContactId = other.ContactId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06005813 RID: 22547 RVA: 0x000ED9BD File Offset: 0x000EBBBD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06005814 RID: 22548 RVA: 0x000ED9C8 File Offset: 0x000EBBC8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 34U)
				{
					if (num == 16U)
					{
						this.ContactId = input.ReadUInt32();
						continue;
					}
					if (num == 34U)
					{
						this.chatMessageList_.AddEntriesFrom(ref input, GetPrivateChatHistoryScRsp._repeated_chatMessageList_codec);
						continue;
					}
				}
				else
				{
					if (num == 48U)
					{
						this.Retcode = input.ReadUInt32();
						continue;
					}
					if (num == 56U)
					{
						this.TargetId = input.ReadUInt32();
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x04002250 RID: 8784
		private static readonly MessageParser<GetPrivateChatHistoryScRsp> _parser = new MessageParser<GetPrivateChatHistoryScRsp>(() => new GetPrivateChatHistoryScRsp());

		// Token: 0x04002251 RID: 8785
		private UnknownFieldSet _unknownFields;

		// Token: 0x04002252 RID: 8786
		public const int ChatMessageListFieldNumber = 4;

		// Token: 0x04002253 RID: 8787
		private static readonly FieldCodec<ChatMessageData> _repeated_chatMessageList_codec = FieldCodec.ForMessage<ChatMessageData>(34U, ChatMessageData.Parser);

		// Token: 0x04002254 RID: 8788
		private readonly RepeatedField<ChatMessageData> chatMessageList_ = new RepeatedField<ChatMessageData>();

		// Token: 0x04002255 RID: 8789
		public const int RetcodeFieldNumber = 6;

		// Token: 0x04002256 RID: 8790
		private uint retcode_;

		// Token: 0x04002257 RID: 8791
		public const int TargetIdFieldNumber = 7;

		// Token: 0x04002258 RID: 8792
		private uint targetId_;

		// Token: 0x04002259 RID: 8793
		public const int ContactIdFieldNumber = 2;

		// Token: 0x0400225A RID: 8794
		private uint contactId_;
	}
}
